﻿namespace AbpZeroTemplate.Dfs
{
    /// <summary>真实存放的文件
    /// </summary>
    public class StorageFile : BaseDfsFile
    {
        /// <summary>访问的Url地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>下载地址
        /// </summary>
        public string DownloadUrl { get; set; }

        /// <summary>虚拟路径
        /// </summary>
        public string SavePath { get; set; }

        /// <summary>本地存储全路径(包含文件名)
        /// </summary>
        public string LocalFullName { get; set; }

        public string GetPathFileName()
        {
            return $"{SavePath}/{GetFileName()}";
        }
    }
}
